package base;

import java.util.ArrayList;
import java.util.List;
import factory.Job;
import factory.Machine;

public class ReferenceParameter {

	private int referenceCmax;
	private int machineNumber;

	List<Job> jobList = new ArrayList<Job>();
	Machine machine = new Machine();

	public ReferenceParameter(int referenceCmax, int machineNumber, Job... job) {

		this.referenceCmax = referenceCmax;
		this.machineNumber = machineNumber;

		for (Job j : job) {
			jobList.add(j);
		}

	}

	public int getReferenceJobListSize() {
		return jobList.size();
	}

	public int getRereferenceMachineNumber() {
		// the number of Machine in ReferenceParameter
		return machineNumber;
	}

	public int getReferenceCmax() {
		return referenceCmax;
	}

	public Job getJob(int index) {
		return jobList.get(index);
	}

	public void removeJob(Job returnJob) {
		jobList.remove(returnJob);
	}

	public List<Job> getReferenceJobList() {
		return jobList;
	}

	public void setReferenceJobList(List<Job> jobList) {
		this.jobList = jobList;
	}
}
